17. Phonebook Commands > 17.8 AT^SPBC   Find first matching entry in sorted phonebook

17.8
AT^SPBC   Find first matching entry in sorted phonebook
The AT^SPBC write command searches the current phonebook for the index number of the first (lowest) entry that matches the character specified with <schar>. The AT^SPBC test command returns the list of phonebooks which can be searched through with AT^SPBC.
CAUTION: Please note that AT^SPBC is assigned the same index as AT^SPBG or AT^SPBS which is not identical with the physical location numbers used in the various phonebooks. Therefore, do not use the index numbers retrieved with AT^SPBC to dial out or modify phonebook entries.
Syntax
Test Command  
Response(s)
^SPBC: "FD","SM","ME"
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Parameter Description
 
<schar>(str)
First character of the entry to be searched in the sorted list of phonebook entries.
 
<index>(num)
In the active phonebook, the first (lowest) index number of an entry beginning with <schar>. As stated above, the retrieved index number shall not be used to dial out or edit phonebook entries. If no matching phonebook entry is found, <index>=0 will be returned.


Note
•
Users should be aware that when using this AT command quickly after SIM PIN authentication the SIM data may not yet be accessible, resulting in a short delay before the requested AT command response is returned. See Section 23.1, Restricted access to SIM data after SIM PIN authentication for further detail.